package com.SmartCampus.system.model.dto.score;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 用户创建请求
 *
 * @author wangliang
 */
@Data
public class ScoreAddRequest implements Serializable {

    /**
     * 学生姓名
     */
    @NotNull(message = "学生姓名不能为空")
    @ApiModelProperty(value = "学生姓名", required = true)
    private String studentName;

    /**
     * 课程名称
     */
    @NotNull(message = "课程名称不能为空")
    @ApiModelProperty(value = "课程名称", required = true)
    private String courseName;

    /**
     * 成绩
     */
    @NotNull(message = "成绩不能为空")
    @ApiModelProperty(value = "成绩", required = true)
    private BigDecimal score;

    /**
     * 备注
     */
    @NotNull
    @ApiModelProperty(value = "备注")
    private String remarks;

    private static final long serialVersionUID = 1L;
}